#ifndef INC_DEVICEDRIVER
#define INC_DEVICEDRIVER

#include <windows.h>

struct COMPARA{
	int BaudRate;
	int Parity;
	int ByteSize;
	int StopBits;
};

HANDLE COM_Open(int NO);
int COM_Close(HANDLE h);
int COM_SetPara(HANDLE h,struct COMPARA *compara);
int COM_Read(HANDLE h,int size,BYTE *buf);
int COM_Write(HANDLE h,int size,BYTE *data);


#endif